package cn.com.dcsgo.ioc.depend;

/**
 * SimpleMovieLister
 *
 * @author Dcsgo
 * @since 2025/2/3 14:42
 */

public class SimpleMovieLister {
    private MovieFinder movieFinder;
    private String movieName;

    public void setMovieFinder(MovieFinder movieFinder) {
        this.movieFinder = movieFinder;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public void doWork() {
        System.out.println(movieFinder.getClass().getSimpleName() + " find movie: " + movieName);
    }
}
